Skip to content

fix: improve k8s-dqlite node removal handling#2588

Open
claudiubelu wants to merge 1 commit into
canonical:release-1.35from
claudiubelu:k8sd-node-removal-to-release-1.35
Open

fix: improve k8s-dqlite node removal handling#2588
claudiubelu wants to merge 1 commit into
canonical:release-1.35from
claudiubelu:k8sd-node-removal-to-release-1.35

Conversation

@claudiubelu

Copy link
Copy Markdown
Contributor

Description

When removing a Kubernetes cluster node, if the node is no longer present in the k8s-dqlite cluster, we can consider that a success, since that's the desired outcome.

Solution

dqlite.Client.RemoveNodeByAddress now returns ErrNotFound error if the member is not found. This error is now being handled properly in removeNodeFromK8sDqlite (cluster_remove.go).

By doing so, we're making the k8s-dqlite node removal operation idempotent on subsequent calls.

Issue

Backport

Not applicable to main / k8sd, removeNodeFromDatastore only handles etcd and external.

Can be backported to release-1.34.

Checklist

  • PR title formatted as type: title
  • Covered by unit tests
  • Covered by integration tests
  • Documentation updated - N/A
  • CLA signed
  • Backport label added if necessary - Cannot add label
  • Confirm whether the release-notes label should be kept or removed - N/A

If any item on the checklist is not complete, please provide justification why.

@github-actions github-actions Bot added the release-notes Apply to PRs that should be included in the release notes label Jun 11, 2026
@claudiubelu claudiubelu force-pushed the k8sd-node-removal-to-release-1.35 branch 2 times, most recently from a0d3b61 to 8c333d9 Compare June 11, 2026 15:44
`dqlite.Client.RemoveNodeByAddress` now returns `ErrNotFound` error if the member
is not found. This error is now being handled properly in `removeNodeFromK8sDqlite`
(`cluster_remove.go`).

By doing so, we're making the k8s-dqlite node removal operation idempotent on
subsequent calls.

Signed-off-by: Claudiu Belu <cbelu@cloudbasesolutions.com>
@claudiubelu claudiubelu force-pushed the k8sd-node-removal-to-release-1.35 branch from 8c333d9 to 5016b30 Compare June 16, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes Apply to PRs that should be included in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant